package cn.fzm.demo04;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Dremeue
 * @create 2019-09-25 0:51
 **/
public class TestListIOC {
    /**
     * 注入复杂属性
     */
    @Test
    public void testListIOC() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        Person person = (Person) context.getBean("person");
        System.out.println(person);
    }
}
